<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="<?php echo base_url()?>css/reset.css" />
<link rel="stylesheet" href="<?php echo base_url()?>css/text.css" />
<link rel="stylesheet" href="<?php echo base_url()?>css/960_24_col.css" />
 <link rel="stylesheet" href="<?php echo base_url()?>css/jquery-ui-1.8.21.custom.css" />
 <link rel="stylesheet" href="<?php echo base_url()?>/css/admin/style.css" />
 <link rel="stylesheet" href="<?php echo base_url()?>css/faary.css" type="text/css" />
 <script type="text/javascript" src="<?php echo base_url()?>js/jquery-1.7.2.min.js"></script>
 <script type="text/javascript" src="<?php echo base_url()?>js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/scripts.js"></script>
<!--- <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.js"></script> --->
<script>
$(function(){
			$("#slocalprods").change(function(){
				idlocal=$(this).val();
				$("#localcat").children().remove();
				url="<?php echo base_url().'admincms/getlocalcatbylc/'?>"+idlocal
				 $.ajax({
					
			         url:url ,
			         type:'POST',
			         dataType: 'json',
			         success: function(output_string){
			        	 var str="";
							for( var os in output_string )
							{

								str=str+"<option value='"+output_string[os]["idlocalcats"]+"'>"+output_string[os]["catname_en"]+"--"+output_string[os]["periodname"]+"</option>";
							}
								$("#localcat").append(str);
							}	
			       
							});//ajax
				

				})// change
	
})
</script>
</head>

<body>
	<script type="text/javascript">

</script>
	<div class="principal container_24">
		
		<!--logo-->
		<div class="logo grid_24">
			<div class="grid_1">&nbsp;</div>
			<div class="grid_4 logoimage">LOGO</div>
			<div class="logout grid_5"><a href=""><img src="<?php echo base_url()?>img/bt_logout.jpg"/></a></div>
		</div><!-- end logo-->
		
		<!--menupricipal-->
		<div class="menuprincipal grid_24">
			
		</div>
		<!-- end menupricipal-->
				
			<div class="descprincipal grid_22">
				description
			</div>
			
			<div class="grid_24 listcontent">
				<h1>SUSHI KANDA ADMIN</h1>
				<div class="grid_22 list">
<h3>ADD</h3>
<ul style="list-style:none">
<li><a href="<?php ECHO base_url()."admincms/pageadddept" ?>"/>ADD DEPARTMENT</a></li>
<li><a href="<?php ECHO base_url()."admincms/pageaddcats" ?>"/>ADD CATEGORIES</a></li>
<li><a href="<?php ECHO base_url()."admincms/pageaddproduct" ?>"/>ADD PRODUCTS</a></li>
<li><a href="<?php ECHO base_url()."admincms/pageaddlocaux" ?>"/>ADD LOCAUX</a></li>

</ul>
<HR/>
<h3>EDIT </h3>
<div><b>EDIT DEPARTMENT</b></div>
<form action="<?php echo base_url().'/admincms/pageeditdept'?>" method="post">
	<select name="iddepartment">
	<?php foreach ($listdept as $ld){?>
	<option value="<?php echo $ld["iddepartment"]?>"><?php echo $ld["deptname_en"]?></option>
	<?php }?>
	</select>
	<input type="submit" name="submit" value="Submit" />
</form>

<hr/>

<div><b>EDIT CATEGORY</b></div>
<form action="<?php echo base_url().'admincms/pageeditcats'?>" method="post">
	<select name="idcategory">
	<?php foreach ($listcats as $ld){?>
	<option value="<?php echo $ld["idcategory"]?>"><?php echo $ld["catname_en"]?></option>
	<?php }?>
	</select>
	<input type="submit" name="submit" value="Submit" />
</form>

<hr/>

<div><b>EDIT PRODUCT</b></div>
<form action="<?php echo base_url().'admincms/pageeditproduct'?>" method="post">
	<select name="idproduct">
	<?php foreach ($listproduct as $ld){?>
	<option value="<?php echo $ld["idproduct"]?>"><?php echo $ld["catname_en"].'--'. $ld["productname_en"]?></option>
	<?php }?>
	</select>
	<input type="submit" name="submit" value="Submit" />
</form>


<hr/>
<div><b>EDIT LOCAUX</b></div>
<form action="<?php echo base_url().'/admincms/pageeditlocaux'?>" method="post">
	<select name="idlocal">
	<?php foreach ($listlocaux as $ld){?>
	<option value="<?php echo $ld["idlocal"]?>"><?php echo $ld["name"];?></option>
	<?php }?>
	</select>
	<input type="submit" name="submit" value="Submit" />
</form>



<BR/><BR/><BR/><BR/>

<H2>EDIT LOCAL PART</H2>
<hr/>
<div><b>EDIT LOCALDEPARTMENT</b></div>
<form action="<?php echo base_url().'/admincms/pagelocaldept'?>" method="post">
	<select name="idlocal">
	<?php foreach ($listlocaux as $ld){?>
	<option value="<?php echo $ld["idlocal"]?>"><?php echo $ld["name"];?></option>
	<?php }?>
	</select>
	<input type="submit" name="submit" value="Submit" />
</form>

<hr/>

<div><b>EDIT LOCALCAT</b></div>
<form action="<?php echo base_url().'admincms/pagelocalcat'?>" method="post">
	<select name="idlocal">
	<?php foreach ($listlocaux as $ld){?>
	<option value="<?php echo $ld["idlocal"]?>"><?php echo $ld["name"];?></option>
	<?php }?>
	</select>
	<input type="submit" name="submit" value="Submit" />
</form>


<hr/>

<div><b>EDIT LOCALPRODUCT</b></div>
<form action="<?php echo base_url().'admincms/pagelocalproduct'?>" method="post">
	<select id="slocalprods" name="idlocal">
	<?php foreach ($listlocaux as $ld){?>
	<option value="<?php echo $ld["idlocal"]?>"><?php echo $ld["name"];?></option>
	<?php }?>
	</select>
	
	<select id="localcat" name="idlocalcat">
	</select>
	<input type="submit" name="submit" value="Submit" />
</form>



				</div>
			</div>
		
	</div><!--end principal-->
</body>
</html>